#ifndef LIBSVM_CLASSIFIER_H__CMU_
#define LIBSVM_CLASSIFIER_H__CMU_

#include "resample_classifier.h"

struct svm_model;

#define LIBSVM_CLASSIFIER "libsvm"

class libsvm_classifier : public resample_classifier{
protected :
	svm_model *model;
	int positive_index;
public :
	libsvm_classifier();
	virtual void train(boosting_problem & prob, int argc, char ** argv);
	virtual double test(boosting_node * x);
	virtual void load(string filename);
	virtual void dump(string filename);
	virtual string get_type() {return LIBSVM_CLASSIFIER;}
	virtual ~libsvm_classifier();
protected :
	virtual void find_positive_index();
};

#endif